import request from '@/utils/request'

export function allChannel(query) {
  return request({
    url: '/api/adminPayCore/payChannels/list',
    method: 'post',
    data: query
  })
}

export function add(obj) {
  return request({
    url: '/api/adminPayCore/payChannels/add',
    method: 'post',
    data: obj
  })
}

export function info(obj) {
  return request({
    url: '/api/adminPayCore/payChannels/info',
    method: 'post',
    data: obj
  })
}

export function update(obj) {
  return request({
    url: '/api/adminPayCore/payChannels/update',
    method: 'post',
    data: obj
  })
}

export function deleteObj(obj) {
  return request({
    url: '/api/adminPayCore/payChannels/delete',
    method: 'post',
    data: obj
  })
}

export function interfaceInfo(obj) {
  return request({
    url: '/api/adminPayCore/payChannelInterfaces/info',
    method: 'post',
    data: obj
  })
}

export function updateInterface(obj) {
  return request({
    url: '/api/adminPayCore/payChannelInterfaces/update',
    method: 'post',
    data: obj
  })
}

export function addInterFace(obj) {
  return request({
    url: '/api/adminPayCore/payChannelInterfaces/add',
    method: 'post',
    data: obj
  })
}

export function deleteInterFace(obj) {
  return request({
    url: '/api/adminPayCore/payChannelInterfaces/delete',
    method: 'post',
    data: obj
  })
}
